package com.huawei;

import java.util.Scanner;

/**
 1.第一个输入整数个n
 2.然后输入n个整数
 3.输出 负数个数 正整数平均数
 分析：
 1.int negativeCount = 0
 2.int positiveCount = 0
 3.float positiveSum = 0  //要浮点数，不然整数除以整数，小数点都没得了
 **/
public class HJ097 {
    public static void main(String[] args) {
        int negativeCount = 0;
        int positiveCount = 0;
        float positiveSum = 0;

        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int i = 0; i < n; i++) {
            int input = scanner.nextInt();
            if(input>0){
                positiveCount ++;
                positiveSum += input;
            }
            if(input < 0){
                negativeCount++;
            }
        }
        double avg = 0.0;
        if(positiveCount != 0){
            avg = positiveSum / positiveCount;
        }


        String format = String.format("%.1f", avg);

        System.out.println(negativeCount+" "+format);

    }
}
